package com.xxxx.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxxx.seckill.pojo.Order;
import com.xxxx.seckill.pojo.SeckillOrder;
import com.xxxx.seckill.vo.GoodsVo;
import com.xxxx.seckill.vo.OrderDeatilVo;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lulongfei
 * @since 2022-04-19
 */
public interface IOrderService extends IService<Order> {
    /**
     * 秒杀
     *
     * @param goods 商品
     * @return
     */
    Order seckill(String usersId, GoodsVo goods);

    /**
     * 订单详情
     *
     * @param orderId 订单
     * @return OrderDeatilVo
     */
    OrderDeatilVo detail(Long orderId);

    void cancelOrder(SeckillOrder seckillOrder);
}
